package io.gitee.hchaojie.day03;

import org.junit.Test;

public class DemoClass {
    @Test
    public void test() {
        // int[] array = new int[] {1, 2, 3};

        // String string = new String("hello, world");
        // String str = string;

        DemoClass demo = new DemoClass();
        DemoClass demo2 = demo;

        demo = null;
        demo2 = null;

        DemoClass demo3;         // 声明一个引用

        demo3 = new DemoClass();        // 创建一个对象
    }
}
